<?php
class Ob_login extends CI_Model{
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    
    public function checkLogin($username, $password){
     $result =   $this->db->get_where('ob_user', array('username'=>$username, 'password' => $password));
     return $result->num_rows() > 0 ? true : false;
    }
    
    public function getUser(){
        return true;
    }
}
